package view;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.SystemColor;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextPane;
import javax.swing.border.EmptyBorder;

public class AboutView extends JFrame {

	private JPanel contentPane;
	private JLabel picture;

	/**
	 * Create the frame.
	 */
	public AboutView() {
		setTitle("About");
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 1024, 450);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		
		String currentDir = System.getProperty("user.dir");
		ImageIcon icon = new ImageIcon(currentDir + "\\images\\teamx.gif");
		picture = new JLabel();
		picture.setBounds(345, 20, 500, 307);
		picture.setIcon(icon);
		contentPane.add(picture);
		setVisible(true);
		
	
		//contentPane.add(panel); 
		
		JLabel lblVossenKonijnen = new JLabel("Vossen & Konijnen");
		lblVossenKonijnen.setForeground(Color.RED);
		lblVossenKonijnen.setFont(new Font("Tahoma", Font.BOLD, 18));
		lblVossenKonijnen.setBounds(10, 11, 277, 28);
		contentPane.add(lblVossenKonijnen);
		
		JLabel lblTeamX = new JLabel("Team X");
		lblTeamX.setForeground(Color.RED);
		lblTeamX.setFont(new Font("Tahoma", Font.PLAIN, 15));
		lblTeamX.setBounds(10, 35, 58, 14);
		contentPane.add(lblTeamX);
		
		JLabel lblVersion = new JLabel("Version 1.0");
		lblVersion.setBounds(10, 50, 79, 14);
		contentPane.add(lblVersion);
		
		JTextPane txtpnJortBlaauw = new JTextPane();
		txtpnJortBlaauw.setBackground(null);
		txtpnJortBlaauw.setText("\r\nJort Blaauw\t\t\t(372716)\r\nGerhard de Boer\t\t(346401)\r\nJeroen Maathuis\t\t(375202)\r\nKoen van der Baan\t\t(377017)\r\nSimon Hiemstra\t\t(378549)\r\n");
		txtpnJortBlaauw.setBounds(20, 60, 335, 154);
		contentPane.add(txtpnJortBlaauw);
		
		repaint();
		setVisible(true);
	}
}
